package com.mayee.me.gateway.filter;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.MultiValueMap;

/**
 * @program: micro-service
 * @description: 缓存请求参数上下文
 * @author: Bobby.Ma
 * @create: 2021-01-09 10:09
 **/
@Data
@NoArgsConstructor
public class GatewayContext {

    public static final String GATEWAY_CONTEXT = "gateway-context";
    
    /*
        Json-Body
    */
    private String body;

    /*
        Form-Urlencoded
    */
    private MultiValueMap<String,String> formData;

    /*
       Query-params
    */
    private MultiValueMap<String,String> queryParams;

    /*
        请求路径
    */
    private String path;
}
